#@author     : Zhu Fei
#@date       : 2023-03-23
#@description: CMakeLists.txt for building Physika framework module
#@version    : 1.0

cmake_minimum_required(VERSION 3.11.4)

project(physika_framework)

FILE(GLOB SRC_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)

set(TARGET_NAME physika_framework)
add_library(${TARGET_NAME} ${SRC_FILES})

target_include_directories(${TARGET_NAME} PRIVATE ${SRC_ROOT})
target_include_directories(${TARGET_NAME} SYSTEM PUBLIC ${THIRD_PATH}/entt/src/)


FILE(GLOB HEADER_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.hpp)
install(FILES ${HEADER_FILES}
        DESTINATION ${HEADER_INSTALL_PATH}/framework)
install(TARGETS ${TARGET_NAME}
        DESTINATION ${LIB_INSTALL_PATH})